package com.mobilous.client.MainScreen;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;

public class AddGroupDialog extends DialogBox {

	public AddGroupDialog() {
		setHTML("Add A Group");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		setWidget(absolutePanel);
		absolutePanel.setSize("291px", "204px");
		
		Label lblGroupName = new Label("Group Name");
		absolutePanel.add(lblGroupName, 10, 10);
		
		TextBox textBox = new TextBox();
		absolutePanel.add(textBox, 10, 34);
		textBox.setSize("240px", "18px");
		
		Label lblPermissions = new Label("Permissions");
		lblPermissions.setStyleName("gwt-Label-dialog-bold");
		absolutePanel.add(lblPermissions, 10, 85);
		
		Label lblProjects = new Label("Projects");
		lblProjects.setStyleName("gwt-Label-dialog-bold");
		absolutePanel.add(lblProjects, 10, 109);
		
		CheckBox chckbxCreateProject = new CheckBox("Create Project");
		chckbxCreateProject.setHTML("Create");
		absolutePanel.add(chckbxCreateProject, 78, 107);
		
		CheckBox chckbxDelete = new CheckBox("Delete");
		absolutePanel.add(chckbxDelete, 138, 109);
		
		CheckBox chckbxModify = new CheckBox("Modify");
		absolutePanel.add(chckbxModify, 201, 107);
		
		Label lblResources = new Label("Resources");
		lblResources.setStyleName("gwt-Label-dialog-bold");
		absolutePanel.add(lblResources, 10, 133);
		
		CheckBox chckbxCreate = new CheckBox("Create");
		absolutePanel.add(chckbxCreate, 78, 133);
		
		CheckBox chckbxDelete_1 = new CheckBox("Delete");
		absolutePanel.add(chckbxDelete_1, 138, 133);
		
		CheckBox chckbxModify_1 = new CheckBox("Modify");
		absolutePanel.add(chckbxModify_1, 201, 131);
		
		Button btnCreate = new Button("Create");
		absolutePanel.add(btnCreate, 227, 164);
		
		Button btnCancel = new Button("Cancel");
		absolutePanel.add(btnCancel, 10, 164);
		
		
		btnCancel.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				hide();
			}
		});
	}
}
